import request from '@/utils/request'

// 查询设备实时运行状态与关键指标列表
export function listRealtimeData(query) {
  return request({
    url: '/equipment-service/equipment/realtimeData/list',
    method: 'get',
    params: query
  })
}

// 查询设备实时运行状态与关键指标详细
export function getRealtimeData(dataId) {
  return request({
    url: '/equipment-service/equipment/realtimeData/' + dataId,
    method: 'get'
  })
}

// 新增设备实时运行状态与关键指标
export function addRealtimeData(data) {
  return request({
    url: '/equipment-service/equipment/realtimeData',
    method: 'post',
    data: data
  })
}

// 修改设备实时运行状态与关键指标
export function updateRealtimeData(data) {
  return request({
    url: '/equipment-service/equipment/realtimeData',
    method: 'put',
    data: data
  })
}

// 删除设备实时运行状态与关键指标
export function delRealtimeData(dataId) {
  return request({
    url: '/equipment-service/equipment/realtimeData/' + dataId,
    method: 'delete'
  })
}
